package javabasics.netty.login.client.console;

import io.netty.channel.Channel;
import javabasics.netty.login.protocol.request.LogoutRequestPacket;

import java.util.Scanner;

/**
 * @Author suxiaoxiao
 * @Date 2019/9/19 23:10
 * @Version 1.0
 */
public class LogoutConsoleCommand implements ConsoleCommand {

    @Override
    public void exec(Scanner scanner, Channel channel) {
        LogoutRequestPacket logoutRequestPacket = new LogoutRequestPacket();
        channel.writeAndFlush(logoutRequestPacket);
    }

}
